package com.qf.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@RestController
@RequestMapping("/receive")
@Slf4j
public class TestController {

    //更新 短信的发送状态
    @PostMapping("/status")
    public String status(@RequestBody Map<String,Object> map){
        log.info("[千锋互联 客户端 ]接收报告成功， report = {}" + map);
        //业务： 更新数据库，更新短信的状态

        //返回成功的结果
        return "success";
    }
}
